<template>
  <view class="box">
    <view class="container">
      <navigator class="addStock" url="/pages/stock/addStock/addStock">添加持仓</navigator>
      <view class="changeStock" @click="toChangeStock"> 一键换仓 </view>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    toChangeStock() {
      uni.navigateTo({
        url: '/pages/stock/changeStock/index'
      });
    }
  }
};
</script>

<style lang="scss" scoped>
.container {
  display: flex;
  justify-content: space-around;
  overflow: hidden;
  text-align: center;
  color: blue;
  .addStock {
    width: 315rpx;
  }
  .changeStock {
    width: 315rpx;
  }
}
</style>
